package org.firebug.spring.boot.jooq.po;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

public class RegionPO implements Serializable {
    private String code;        // 地区编号
    private String pcode;       // 上一级地区编号
    private String name;        // 地区名字
    private Integer level;      // 地区树状结构的层级
    private String firstSpell;  // 首字母
    private String simpleSpell; // 拼音简拼
    private String intactSpell; // 拼音全拼

    public RegionPO() {
    }

    public RegionPO(String code, String pcode, String name, Integer level, String firstSpell, String simpleSpell, String intactSpell) {
        this.code = code;
        this.pcode = pcode;
        this.name = name;
        this.level = level;
        this.firstSpell = firstSpell;
        this.simpleSpell = simpleSpell;
        this.intactSpell = intactSpell;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getFirstSpell() {
        return firstSpell;
    }

    public void setFirstSpell(String firstSpell) {
        this.firstSpell = firstSpell;
    }

    public String getSimpleSpell() {
        return simpleSpell;
    }

    public void setSimpleSpell(String simpleSpell) {
        this.simpleSpell = simpleSpell;
    }

    public String getIntactSpell() {
        return intactSpell;
    }

    public void setIntactSpell(String intactSpell) {
        this.intactSpell = intactSpell;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
